<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="jquery-3.3.1.js"></script>
</head>
<body>
<input type="text" id="tel" name="tel">
<span id="text"></span>
</body>
</html>
<script>
    $('#tel').blur(function(){

        tel=$(this).val();
        $.ajax({

            type : 'get',
            url : 'index.php',
            dataType : 'json',
            data : {tel : tel},
            success:function(res)
            {

                $('#text').html(res.result.att);
            }

        })

    })
</script>